package com.htsk.city.services.wechat.vo;

import com.htsk.city.services.core.domain.WxUserAddress;
import lombok.Data;

@Data
public class WxUserAddressVO {
    private Long id;
    private String contact;
    private String mobile;
    private String address;
    private String doorplate;
    private Integer isDefault;
    public WxUserAddressVO(){}

    public WxUserAddressVO(WxUserAddress wxUserAddress){
        this.id=wxUserAddress.getId();
        this.contact=wxUserAddress.getContact();
        this.mobile=wxUserAddress.getMobile();
        this.address=wxUserAddress.getAddress();
        this.doorplate=wxUserAddress.getDoorplate();
        this.isDefault=wxUserAddress.getIsDefault();
    }

    public void trans(WxUserAddress wxUserAddress){
        wxUserAddress.setContact(contact);
        wxUserAddress.setMobile(mobile);
        wxUserAddress.setAddress(address);
        wxUserAddress.setDoorplate(doorplate);
        wxUserAddress.setIsDefault(isDefault);
    }
}
